﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using YArchitech.LIB;
using YArchitech.LIB.YJKControls;

namespace YJKArch.RoomRoofModule
{
	public partial class ComponentSelectForm : System.Windows.Forms.Form
	{
		public ComponentSelectForm()
		{
			this.InitializeComponent();
		}

		private void ComponentSelectForm_KeyDown(object sender, KeyEventArgs e)
		{
			if (e.KeyCode == Keys.Escape)
			{
				base.Close();
			}
		}

		private void CancelBtn_Click(object sender, EventArgs e)
		{
			base.Close();
		}

		private void OkBtn_Click(object sender, EventArgs e)
		{
			if (this.WallCheckBox.Checked)
			{
				this.m_lstComponentType.Add("WallType");
				this.m_bWallCheck = true;
			}
			if (this.FloorCheckBox.Checked)
			{
				this.m_lstComponentType.Add("FloorType");
				this.m_bFloorCheck = true;
			}
			if (this.ColumnCheckBox.Checked)
			{
				this.m_lstComponentType.Add("ColumnType");
				this.m_bColumnCheck = true;
			}
			if (this.CellingCheckBox.Checked)
			{
				this.m_lstComponentType.Add("CeilingType");
				this.m_bCeilingCheck = true;
			}
			if (this.DecorateCheckBox.Checked)
			{
				this.m_lstComponentType.Add("DecorateType");
				this.m_bDecorateCheck = true;
			}
			if (this.OtherCheckBox.Checked)
			{
				this.m_lstComponentType.Add("OtherType");
				this.m_bOtherCheck = true;
			}
			base.Close();
		}

		private void ComponentSelectForm_Load(object sender, EventArgs e)
		{
			base.Icon = Resource.YArchitechIcon;
		}

		public List<string> m_lstComponentType = new List<string>();

		public bool m_bWallCheck;

		public bool m_bFloorCheck;

		public bool m_bColumnCheck;

		public bool m_bCeilingCheck;

		public bool m_bDecorateCheck;

		public bool m_bOtherCheck;
	}
}
